package com.cyloer.strategy.Impl;

import com.cyloer.strategy.service.DisCountService;
import org.springframework.stereotype.Service;

/**
 * @Description:
 * @author: xiangliu5
 * @date: 2022/12/26 19:59
 */
@Service
public class DisCountFiveServiceImpl implements DisCountService {
    @Override
    public void disCountPay() {
        System.out.println("这个是5元优惠券使用方法");
    }

    @Override
    public boolean support(String type) {
        return "5".equals(type);
    }
}
